package com.dynamic.mybatis.core.exceptions;

/**
 * @Description
 * @Author xs
 * @Date 2023/5/11 18:49
 */
public class DmsDocumentException extends RuntimeException {
    private int lineNumber;
    private int columnNumber;

    public DmsDocumentException() {
    }

    public DmsDocumentException(String message, int lineNumber, int columnNumber) {
        super(message);
        this.lineNumber = lineNumber;
        this.columnNumber = columnNumber;
    }

    public DmsDocumentException(Throwable cause) {
        super(cause);
    }

    public DmsDocumentException(Throwable cause, String message, int lineNumber, int columnNumber) {
        super(message, cause);
        this.lineNumber = lineNumber;
        this.columnNumber = columnNumber;
    }

    public int getLineNumber() {
        return lineNumber;
    }

    public void setLineNumber(int lineNumber) {
        this.lineNumber = lineNumber;
    }

    public int getColumnNumber() {
        return columnNumber;
    }

    public void setColumnNumber(int columnNumber) {
        this.columnNumber = columnNumber;
    }
}